package com.wzcx.orclib;

import android.os.Parcel;

public class MaskConfig implements android.os.Parcelable {

  public String title;
  public String subTitle;
  public String cardTitle;
  public String cardHint;


  public int width;
  public int height;
  public int gravity = 0;

  public int leftMargin = 0;
  public int rightMargin = 0;
  public int bottomMargin = 0;

  public MaskConfig(){

  }


  protected MaskConfig(Parcel in) {
    title = in.readString();
    subTitle = in.readString();
    cardTitle = in.readString();
    cardHint = in.readString();
    width = in.readInt();
    height = in.readInt();
    gravity = in.readInt();
    leftMargin = in.readInt();
    rightMargin = in.readInt();
    bottomMargin = in.readInt();
  }

  @Override
  public void writeToParcel(Parcel dest, int flags) {
    dest.writeString(title);
    dest.writeString(subTitle);
    dest.writeString(cardTitle);
    dest.writeString(cardHint);
    dest.writeInt(width);
    dest.writeInt(height);
    dest.writeInt(gravity);
    dest.writeInt(leftMargin);
    dest.writeInt(rightMargin);
    dest.writeInt(bottomMargin);
  }

  @Override
  public int describeContents() {
    return 0;
  }

  public static final Creator<MaskConfig> CREATOR = new Creator<MaskConfig>() {
    @Override
    public MaskConfig createFromParcel(Parcel in) {
      return new MaskConfig(in);
    }

    @Override
    public MaskConfig[] newArray(int size) {
      return new MaskConfig[size];
    }
  };
}

